package com.ddw.wotcg.client.threejs.math;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * http://mrdoob.github.com/three.js/docs/54/#Reference/Math/Vector2
 * 
 * @author fungus1487
 * 
 */
public final class Vector2 extends JavaScriptObject {
	
	public static native Vector2 create(double x, double y) /*-{
		return new $wnd.THREE.Vector2(x, y);
	}-*/;
	
	protected Vector2() {
	}
	
	public native double getX() /*-{
		return this.x;
	}-*/;
	
	public native double getY() /*-{
		return this.y;
	}-*/;
	
}
